import { request } from 'network/request'

export function getHomeMultidata() { 
  return request({
    url:'/multidata.json'
  })
}

export function getHomedata() {
    return request({
        url:'/multidata.json'
    })
}

export function getHomeGoods(type, page) {
  let theURL
  if (type == 'new') {
    theURL = '/new/new-' + page + ".json"
  } else if (type == 'pop') {
    theURL = '/pop/pop-' + page + ".json"
  } else if (type == 'sell') {
    theURL = '/sell/sell-' + page + ".json"
  } else { 

  }
  return request({
    url:theURL,
/* params:{
      type,
      page
    } */
  })
}